package com.dl.designmodel.adapter1;

import com.dl.designmodel.bridge1.Color;
import com.dl.designmodel.bridge1.RedColor;

/**
 * @ProjectName: mcroservices
 * @Package: com.dl.designmodel.adapter1
 * @ClassName: ColorAdapter
 * @Author: 86977
 * @Description: ${description}
 * @Date: 2021/6/29 10:10
 * @Version: 1.0
 */
public class ColorAdapter  implements Color {
  private  Color color;

  public ColorAdapter( Color color) {
    this.color = color;
  }

  @Override
  public String getColor() {
    return color.getColor();
  }
}
